import {
	http
} from "@/utils/request.js";
import api from "@/config/api.js";

// 登录
export const xcxLogin = params => http.request({
	url: '/api/front/ticket/user/oneClickLogin',
	method: 'POST',
	data: params
});

// 账号密码登录
export const pwdLogin = params => http.request({
	url: '/api/front/ticket/user/userNameAndPasswordLogin',
	method: 'POST',
	data: params
});

// 手动核销
export const manualWriteOff = params => http.request({
	url: '/api/front/ticket/b/manualWriteOff',
	method: 'POST',
	data: params
});
// 扫码核销
export const scanWriteOff = params => http.request({
	url: '/api/front/ticket/b/scanWriteOff',
	method: 'POST',
	data: params
});

// 公司列表
export const companyList = params => http.request({
	url: '/api/front/ticket/user/getDeptList',
	method: 'GET',
	data: params
});

// 核销记录
export const pageList = params => http.request({
	url: '/api/front/ticket/b/selectWriteOffRecordList',
	method: 'GET',
	data: params
});

// 查询核销列表
export const selectWriteOffList = params => http.request({
	url: '/api/v1/ticket/b/selectWriteOffList',
	method: 'POST',
	data: params
});

// 根据公司查询场地
export const selectScenicSpotByCompanyId = params => http.request({
	url: '/api/front/ticket/user/selectScenicSpotByDeptId/' + params.deptId,
	method: 'GET'
});

// 录入游戏得分
export const entryScore = params => http.request({
	url: '/api/front/ticket/b/entryScore',
	method: 'POST',
	data: params
});